<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>石猴红木_产品列表</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    	.width100 {width: 100px; margin-right: 30px;float: left;}
    	.width180 {width: 180px; margin-right: 20px;float: left;}
    	.layui-input { display: inline-block; }
    	#productList{width: 100%;padding: 10px 2%;}
    	ul#productList li.one{ width: 24%;float:left;     text-align: center;    margin-top: 8px; }
    	.width180 {width: 180px; float: left;margin-top: 10px;}
    	.name{text-align: left;font-size: 14px;margin-top: 4px; overflow: hidden; text-align: center;     height: 20px;}
    	#bottom {position: fixed; background: black;width: 100%; height: 60px;padding-left: 40px;padding-top: 10px;bottom: 1px;z-index: 1000;}
    	ul#menu {float: left;color: #fff;font-size: 20px;margin-left: 10px; margin-top: 8px;}
    	ul#menu li {float: left;width: 168px;padding-left: 8px;}
    	ul#menu li span { font-size: 28px;}
    	ul#menu a { color: #fff; }
    </style>
</head>
<body  class="layui-layout-body" style="overflow-y:scroll;">
<div id="bottom" >
	<img src="${base}/images/shihou_logo.png"  height="60px" style="float: left;"/>	<ul id="menu"><li><a href="${base}/shihou/introduce"><span class="fa fa-info"></span> 公司介绍</a></li><li><a href="${base}/shihou/index"><span class="fa fa-shopping-bag"></span> 产品展示</a></li><li><a href="${base}/shihou/shopping"><span class="fa fa-shopping-cart"></span> 购物车</a></li></ul>
</div>
<div class="layui-main" style="position: absolute;left: 4px;top: 0px; width: calc(100% - 4px);" >
<blockquote class="layui-elem-quote layui-quote-nm layui-form">
 	<form action="${base}/shihou/index" method="post" id="dataForm" >
          <div class="layui-input-inline" >
		    <label class="layui-form-label">类型：</label>
		    <div class="layui-input-block " >
		      <select name="type" id="type" class="width180 layui-select" >
		      	<option value="">--请选择--</option>
		      	<#list typeList as one>
		        <option value="${one}">${one}</option>
		        </#list>
		      </select>
		    </div>
		    <label class="layui-form-label">风格：</label>
		    <div class="layui-input-block">
		      <select name="style" id="style" class="width180 layui-select" >
		      	<option value="">--请选择--</option>
		      	<#list styleList as one>
		        <option value="${one}">${one}</option>
		        </#list>
		      </select>
		    </div>
		    <label class="layui-form-label">空间：</label>
		    <div class="layui-input-block">
		      	<select name="space" id="space" class="width180 layui-select" >
		      	<option value="">--请选择--</option>
		      	<#list spaceList as one>
		        <option value="${one}">${one}</option>
		        </#list>
		      </select>
		      <button class="layui-btn layui-btn-normal" lay-submit=""> <span class="fa fa-search"></span> 查询</button>
		    </div>
		 </div>
    </form>
</blockquote> 
<ul id="productList">
 	<#list productList as one>
	<li class="one">
		<a href="${base}/shihou/detail?id=${one.id}">
		<img src="${one.pic_url}?imageView2/1/w/100/h/100"  title="${one.name?default('')}"/>
		<div class="name" title="${one.name?default('')}" >${one.name?default('')}</div>
		</a>
	</li>
	</#list>
</ul>
</div>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script>
$("#type").val("${type?default('')}");
$("#style").val("${style?default('')}");
$("#space").val("${space?default('')}");
layui.use('form', function() {
    var form = layui.form;
    form.render('select');
});
</script>
</html>